<?php
FLEA::loadClass('Controller_Base');

class Controller_TradeSecret extends Controller_Base
{
	
	function actionGetTradeSecrets()
	{
		$clientID	=	$_POST['ClientID'];
		
		$clientID	=	$clientID==''?0:$clientID;

		$_modelTradeSecret	=&	FLEA::getSingleton('Model_TradeSecret');
		$secrets			=	$_modelTradeSecret->findAllTradeSecrets($clientID);
	
		if(is_array($secrets))
		{
			$this->purse($secrets,'secrets',0);
		}
	}
}
?>